package com.sky.yipinyoufujava.service;

import com.sky.yipinyoufujava.pojo.from.GetSingleOrderGoodsFrom;
import com.sky.yipinyoufujava.pojo.from.OrderForm;
import com.sky.yipinyoufujava.pojo.goods.Goods;
import com.sky.yipinyoufujava.pojo.order.CreateOrder;
import com.sky.yipinyoufujava.pojo.order.Order;
import com.sky.yipinyoufujava.pojo.order.OrderStatus;

import java.util.List;

public interface OrderService {
    List<Order> getOrder(OrderForm orderForm);

    List<Goods> getSingleOrderGoods(GetSingleOrderGoodsFrom orderId);

    Order getSingleOrderInfo(GetSingleOrderGoodsFrom orderId);

    void createTemporaryOrder(CreateOrder createOrder);

    void createOfficiallyOrder(Order order);

    void updateOrderStatus(OrderStatus orderStatus);

    void insertOrderGoodsList(String orderNumber,List<String> orderGoodsId);

    void updateOrderInfo(Order order);

}
